package com.puzzlebazar.client.main.control;


public abstract class NamedStateImpl implements NamedState {

	/**
	 * Initializes a new named state and register it with its controller
	 * 
	 * @param controller The associated controller
	 */
	protected NamedStateImpl( NamedStateController controller ) {
		String stateName = getStateName();
		if( stateName != null )
			controller.addNamedState(stateName, this );
	}
	
	
	@Override
	public boolean canEnter() {
		return true;
	}

	@Override
	public void release() {
	}
}
